package org.jsola.hr.service.excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author zdd
 */
public class AttendPunchSalaryNoModelDataListener extends AnalysisEventListener<Map<Integer, String>> {

    List<Map<Integer, String>> list = new ArrayList();

    public List<Map<Integer, String>> getList() {
        return list;
    }

    @Override
    public void invoke(Map<Integer, String> data, AnalysisContext context) {
        if(list.size() <= 2000){
            list.add(data);
        }
    }


    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
    }

}